package com.wln.sms.sms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author wulinna
 * @email 2258732595@qq.com
 * @date 2022-02-22 14:30:53
 */
@Data
@TableName("goods_activity")
public class GoodsActivityEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 秒杀商品表id
	 */
	@TableId
	private Long activityId;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 商品图片
	 */
	private String goodsImg;
	/**
	 * 秒杀价
	 */
	private BigDecimal activityPrice;
	/**
	 * 库存数量
	 */
	private Integer stockCount;
	/**
	 * 秒杀开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startDate;
	/**
	 * 秒杀结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endDate;

	@TableField(exist = false)
	private long userId;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public BigDecimal getActivityPrice() {
		return activityPrice;
	}

	public void setActivityPrice(BigDecimal activityPrice) {
		this.activityPrice = activityPrice;
	}

	public Integer getStockCount() {
		return stockCount;
	}

	public void setStockCount(Integer stockCount) {
		this.stockCount = stockCount;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
}
